import React from 'react';
import DocViewer, { PDFRenderer, PNGRenderer, DocViewerRenderers } from 'react-doc-viewer';
import pdf from './JavaScript.pdf';

export default function App() {
    const docs = [
        { uri: pdf }, // Local File
    ];

    return (
        <div className=' w-screen h-screen'>
            <DocViewer pluginRenderers={DocViewerRenderers} documents={docs} />
        </div>
    );
}
